package com.ruoyi.project.xkx.student.controller;

import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.xkx.student.service.SourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/student/source")
public class SourceController {

    @Autowired
    private SourceService sourceService;

    @GetMapping("/listSource")
    public AjaxResult getSource(){
        return AjaxResult.success(sourceService.list());
    }
}
